package com.zlx.exchange.address.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "address", contextId = "address")
public interface AddressFeign {
    @GetMapping("findProvince")
    ResponseEntity<?> findProvince();

    @GetMapping("/api/address/findAddress")
    ResponseEntity<?> findAddress(@RequestParam("id") String id);

    @GetMapping("/api/address/findRegion")
    ResponseEntity<?> findProvince(@RequestParam("regionFatherId") String regionFatherId);
}
